<?php
	$cfg = new Config('log');
	$build = explode('.', $cfg->xendri_build);
	if (strpos($build[0], 'd') > -1) {
		if (date("Y-m-d", $cfg->mtime()) != date("Y-m-d")) {
			$build[1]++;
			$cfg->xendri_build = implode('.', $build);
		}
		$cfg->save();
	}
	define('XENDRI_DISTR', $build[0]);
	define('XENDRI_BUILD', $build[1]);
?>